net/https-dns-proxy: Update to 2018-04-23
authorJemy Zhang <[email protected]>
Thu, 26 Apr 2018 10:19:54 +0000 (18:19 +0800)
committerJemy Zhang <[email protected]>
Thu, 26 Apr 2018 10:19:54 +0000 (18:19 +0800)
+ add option for resolver_url_prefix

Signed-off-by: Jemy Zhang <[email protected]>
net/https-dns-proxy/Makefile
net/https-dns-proxy/files/https_dns_proxy.config
net/https-dns-proxy/files/https_dns_proxy.init

index 3bc8f9f8e2cfda020187fb93cda12bc90e4bf748..3a8e754040ccca80692a6b5605d00c038c4c614c 100644 (file)
@@ -1,15 +1,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https_dns_proxy
-PKG_VERSION:=2018-01-28
+PKG_VERSION:=2018-04-23
 PKG_RELEASE=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MIRROR_HASH:=627f468230a02d8c36915978cc4dce9f1458590aa30e2df723d59cb860acb192
+PKG_MIRROR_HASH:=24b7e4238c37e646f33eee3a374f6b7beb5c167b9c5008cc13b51e5f1f3a44ea
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=843b768f0cd3aa6fa5aed4fa992776657bc18d14
+PKG_SOURCE_VERSION:=bea68401330e611f6e9b75cec84e2dc4e81e52de
 PKG_MAINTAINER:=Aaron Drew <[email protected]>
 PKG_LICENSE:=MIT
 
index 7f5aaa66930f07ba038ebedf7f5889e30a171ab0..b124aeb9ddff97ed53d9295f4e8e97285c600782 100644 (file)
@@ -5,3 +5,4 @@ config https_dns_proxy
        option group 'nogroup'
        option subnet_addr ''
        option proxy_server ''
+       option url_prefix 'https://dns.google.com/resolve?'
index 29bd71ed737832ae4b757cd977ef0c1a2d417f73..9a5f797925f085ee9599a5c939a46782b67f2ac9 100644 (file)
@@ -15,6 +15,7 @@ start_instance() {
        config_get group "$cfg" group
        config_get subnet_addr "$cfg" subnet_addr
        config_get proxy_server "$cfg" proxy_server
+       config_get url_prefix "$cfg" url_prefix
 
        if [ -n "$subnet_addr" ]; then
                subnet_param="-e $subnet_addr"
@@ -24,10 +25,15 @@ start_instance() {
                proxy_param="-t $proxy_server"
        fi
 
+       if [ -z "$url_prefix" ]; then
+               url_prefix="https://dns.google.com/resolve?"
+       fi
+
        procd_open_instance
        procd_set_param command ${PROG} \
                -a "$listen_addr" -p "$listen_port" \
-               -u "$user" -g "$group" $subnet_param $proxy_param
+               -u "$user" -g "$group" $subnet_param $proxy_param \
+               -r "$url_prefix"
        procd_set_param respawn
        procd_close_instance
 }